home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / disk / cops707.zip / COPSINCE.DOC < prev    next >
Text File  |  1997-07-31  |  12KB  |  269 lines

  1. COPSINCE.DOC                           1                           Jul 31, 1997
  2.  
  3. WIN95 AND WINNT NOTICE:  As with most DOS-based utilities, this program doesn't
  4. understand the weird subdirectories, long filenames,  invalid  characters  that
  5. are possible under Windows 95 and Windows/NT.   Both  operating  systems  alias
  6. long filenames into names like MYFILE~1.TXT and you will need  to  specify  the
  7. aliased versions of file names to process  them.   Under  some  file  structure
  8. systems in NT, the program may not work at all.
  9.  
  10. This program looks for all files in a particular subdirectory  and  copies  all
  11. new ones to another subdirectory.  It is typically used to make sure  you  have
  12. backups of files while you're  in  the  middle  of  doing  something  to  them.
  13. Features:
  14.  
  15.   * You can copy all files updated since  a  given  date  or  within  the  last
  16.     x-number of days.
  17.   * You can specify that newer files be copied regardless of  date  restriction
  18.     as long as the older version already exists in the subdirectory.
  19.   * You can define groups of file types, using DOS wildcard specifications  and
  20.     copy only, say, text files or word processing files.
  21.   * Pressing escape stops the program early.
  22.  
  23.  
  24. Defining your own file specifications:
  25.  
  26. You can create your own file specifications for copying  purposes.   Typically,
  27. this is done using an *.INI file (see BRUCEINI.DOC file) but  it  can  also  be
  28. done from the command line.
  29.  
  30. These definition specifications are made using the following syntax:
  31.  
  32.         /DEF filetype=filespecs
  33.  
  34. For example, if you want to specify a new grouping "WP", you can define  it  to
  35. include something like the following:
  36.  
  37.         /DEF WP=*.WP *.WP5
  38.  
  39. Up to 20 file specifications can be made for a given group.  Your  COPSINCE.INI
  40. file can contain up to 10 groupings.  Once the group is defined, you  can  then
  41. specify the name of the group on the command line and those are the files  that
  42. will be grabbed.  By default, only two file  types  are  defined  and  you  can
  43. override both of these if desired:
  44.  
  45.         /DEF ALL=*.*
  46.         /DEF TEXT=*.BAS *.BAT *.BI *.C *.DOC *.H *.REF *.TXT
  47.  
  48. Win95  notice:   As  with  most  DOS-based  utilities,  this  program   doesn't
  49. understand the weird subdirectories  and  filenames  that  are  possible  under
  50. Windows 95.
  51.  
  52.  
  53. COPSINCE.DOC                           2                           Jul 31, 1997
  54.  
  55. When are files copied or moved:
  56.  
  57. COPSINCE  has  five  action  parameters  that  are  mutually  exclusive   which
  58. determines which (if any) files get copied or moved:
  59.  
  60.  /DIFF   says to copy any files which are different in size, creation date,  or
  61.          time as well as any files which don't already exist in the destination
  62.          subdirectory at all.
  63.  
  64.  /A      says to only copy files to the destination subdirectory only  if  they
  65.          are not currently there.
  66.  
  67.  /U      says to only copy files to the destination subdirectory  if  they  are
  68.          newer in the source subdirectory.
  69.  
  70.  /AU     says to  copy  files  if  they  are  either  not  in  the  destination
  71.          subdirectory or they're more recent in the source subdirectory.
  72.  
  73.  /CLONE  says to copy everything no matter what.
  74.  
  75. The following table may help explain this:
  76.  
  77. File in         File in                         Copy?
  78. Source sub      Destination sub       /DIFF  /A    /U    /AU  /CLONE
  79.  
  80. Newer           Older                 YES    no    YES   YES  YES
  81. Older           Newer                 YES    no    no    no   YES
  82. One size        Another size          YES    no    no    no   YES
  83. Present         Missing               YES    YES   no    YES  YES
  84. Same            Same                  no     no    no    no   YES
  85.  
  86. If /OBEY is in effect, files  are  only  copied  if  the  file  in  the  source
  87. subdirectory was created within the number of  days  specified  in  the  "/COPY
  88. date" or "/COPY -n" parameter.
  89.  
  90.  
  91. Specifying parameters:
  92.  
  93. Parameters for this program can be set in the following ways.  The last setting
  94. encountered always wins:
  95.   - Read from an *.INI file (see BRUCEINI.DOC file),
  96.   - Through the use of an environmental variable (SET COPSINCE=whatever), or
  97.   - From the command line (see "Syntax" below)
  98.  
  99.  
  100.  
  101. COPSINCE.DOC                           3                           Jul 31, 1997
  102.  
  103. Syntax:
  104.  
  105.     COPSINCE [ [ /FROM ] from_dir | from_dir\filespec ] [ /TO to_dir ]
  106.       [ /COPY date | /COPY -n ] [ /DIFF | /A | /U | /AU | /CLONE ] [ /-OBEY ]
  107.       [ /DEF filetype=spec [ spec ]... ] [ /ALL | /TEXT | /filetype ]
  108.       [ /-4DOS ] [ /BEEP ] [ /MONO ] [ /Iinitfile | /-I ] [ /-ENV ] [ /? ]
  109.  
  110. where:
  111.  
  112. "/FROM from_dir" (or just "from_dir") is the subdirectory  name  in  which  the
  113. source files are found.  Can provide drive and  path  information  if  desired.
  114. Defaults to  the  current  subdirectory.   Alternatively,  you  can  specify  a
  115. filespec including wildcards to limit the activity to one group of  files.   If
  116. you specify a filespec, it overrides any /ALL, /TEXT, /filetype specifications.
  117.  
  118. "/TO to_dir" (or just "to_dir") is the destination to which to copy the  files.
  119. Can provide drive and path  information  if  desired.   Initially  defaults  to
  120. "/TO=A:\".  The equal sign is optional.
  121.  
  122. "/COPY date" (or "date") specifies the date  from  which  you  want  all  files
  123. copied.  Initially defaults to today's date (for  example,  "/COPY  06-23-96").
  124. The date should be in whatever national date  format  you  have  set  for  your
  125. computer.
  126.  
  127. "/COPY -n" (or "-n") says to copy all files updated in  the  last  n-number  of
  128. days.  Initially defaults to "/COPY -0"; all files created today only.
  129.  
  130. "/DIFF" says to copy files from the  source  subdirectory  to  the  destination
  131. subdirectory if it either doesn't exist in the destination subdirectory or  its
  132. file date, time, or size is different.  This is  initially  the  default.   The
  133. following parameters are all mutually  exclusive:   /DIFF,  /A,  /U,  /AU,  and
  134. /CLONE.
  135.  
  136. "/A" adds new files only to the destination subdirectory.  If the  file  exists
  137. already in the destination subdirectory, it will be skipped over  whether  it's
  138. newer or not.  The following parameters are all mutually exclusive:  /DIFF, /A,
  139. /U, /AU, and /CLONE.
  140.  
  141. "/U" says to  copy  files  only  if  they  exist  already  in  the  destination
  142. subdirectory and only if the files in the destination  subdirectory  are  older
  143. than the ones in the source subdirectory.  The  following  parameters  are  all
  144. mutually exclusive:  /DIFF, /A, /U, /AU, and /CLONE.
  145.  
  146. "/AU" copies the file if the version in the destination subdirectory is  either
  147. missing or older than the one in the source subdirectory.  Note that  "/UA"  is
  148. treated  the  same  as  "/AU".   The  following  parameters  are  all  mutually
  149. exclusive:  /NONE, /DIFF, /A, /U, /AU, and /CLONE.
  150.  
  151. "/CLONE" says to copy all files from directory1 to  directory2.   Period.   The
  152. following parameters are all mutually  exclusive:   /DIFF,  /A,  /U,  /AU,  and
  153. /CLONE.
  154.  
  155.  
  156. COPSINCE.DOC                           4                           Jul 31, 1997
  157.  
  158. "/OBEY" says that if the file exists already in the  output  subdirectory,  the
  159. "/COPY date" or "/COPY -n" specification is to be strictly adhered to.  This is
  160. initially the default.
  161.  
  162. "/-OBEY" says that if the file exists already in the output subdirectory and is
  163. older there than it is in the input subdirectory, ignore the  "/COPY  date"  or
  164. "/COPY -n" specifications and update it anyway.  This makes sure that the files
  165. are current even when they're outside your  date  specification.   The  initial
  166. default is "/OBEY".
  167.  
  168. "/DEF  filetype=spec  [  spec  ]"  allows  you  to   create   your   own   file
  169. specifications.  Typically, this would be  specified  in  your  initfile.   See
  170. "Defining your own file specifications" above.
  171.  
  172. "/ALL" says to take all files (initially, a file specification of *.*).
  173.  
  174. "/TEXT" restricts copying to only those files that are  known  to  be  straight
  175. ASCII files.  Initially, this is defined as any files which  meet  any  of  the
  176. following file specifications:
  177.  
  178.         *.BAS *.BAT *.BI *.C *.DOC *.H *.REF *.TXT
  179.  
  180. Initially, the routine grabs the /TEXT specification by default.
  181.  
  182. "/filetype" allows you to invoke your own file specification.  You  might  want
  183. to have something like /WP (for *.WP *.WP5  etc  files)  or  whatever.   Unless
  184. you're referencing /TEXT or /ALL though, you have to define the filetype  using
  185. a /DEF filetype statement before using it; the  relevant  "/DEF  filetype=spec"
  186. parameter must  appear  before  the  "/filetype"  parameter  in  the  *.INI  or
  187. command-line or *.INI file or whatever.
  188.  
  189. "/4DOS" says to respect 4DOS conventions vis-a-vis the DESCRIPT.ION file.  File
  190. descriptions from the DESCRIPT.ION file in the input path are  added  to  those
  191. (if any) in the DESCRIPT.ION file in the output path.  4DOS is  copyrighted  by
  192. Rex Conn and JP  Software  Inc.   The  COPSINCE  program  initially  determines
  193. whether 4DOS is loaded or not and acts appropriately.  The "/4DOS" switch  says
  194. to force 4DOS adherence whether it's loaded or not.
  195.  
  196. "/-4DOS" says to ignore  4DOS  conventions  vis-a-vis  the  DESCRIPT.ION  file.
  197. Initially, the conventions are ignored only if 4DOS is not currently loaded.
  198.  
  199. "/BEEP" gives you a beep when the  program  finishes.   Initially  defaults  to
  200. "/-BEEP".
  201.  
  202. "/-BEEP" does not beep when  the  program  finishes.   This  is  initially  the
  203. default.
  204.  
  205. "/MONO" (or "/-COLOR") does not  try  to  override  screen  colors.   Initially
  206. defaults to "/COLOR".
  207.  
  208. "/COLOR" (or  "/-MONO")  allows  screen  colors  to  be  overridden.   This  is
  209. initially the default.
  210.  
  211.  
  212. COPSINCE.DOC                           5                           Jul 31, 1997
  213.  
  214. "/Iinitfile" says to read an initialization file with the file name "initfile".
  215. The file specification *must* contain a period.  Initfiles are described in the
  216. BRUCEINI.DOC file.  Initially defaults to "/ICOPSINCE.INI".
  217.  
  218. "/-I" (or "/INULL") says to skip loading the initialization file.
  219.  
  220. "/ENV" says to look for %var% occurrences  in  the  command  line  and  try  to
  221. resolve any apparent environmental variable references.  See  BRUCEINI.DOC  for
  222. more information.  This is initially the default.
  223.  
  224. "/-ENV" says to skip resolving apparent %var% occurrences in the command  line.
  225. Initially defaults to "/ENV".
  226.  
  227. "/?" or "/HELP" or "HELP" shows you the syntax for the command.
  228.  
  229.  
  230. Return codes:
  231.  
  232. COPSINCE returns the following ERRORLEVEL codes:
  233.  
  234.         0 = no problems
  235.       250 = operation aborted by pressing Escape
  236.       255 = syntax problems, or /? requested
  237.  
  238.  
  239. Author:
  240.  
  241. This program was written by Bruce Guthrie of Wayne Software.  It  is  free  for
  242. use and  redistribution  provided  relevant  documentation  is  kept  with  the
  243. program, no changes are made to the program or documentation,  and  it  is  not
  244. bundled with commercial programs or charged for separately.  People who need to
  245. bundle it in for-sale packages must  pay  a  $50  registration  fee  to  "Wayne
  246. Software" at the following address.
  247.  
  248. Additional information about this and other  Wayne  Software  programs  can  be
  249. found in the file BRUCE.DOC which should be included in the original ZIP  file.
  250. The recent change history for this and the other programs is  provided  in  the
  251. HISTORY.ymm file which should be in the same ZIP file where "y" is replaced  by
  252. the last digit of the year and "mm" is the two  digit  month  of  the  release;
  253. HISTORY.611 came out in November 1996.  This same naming convention is used  in
  254. naming the ZIP file (COPSymm.ZIP) that this program was included in.
  255.  
  256. Comments and suggestions can also be sent to:
  257.  
  258.                 Bruce Guthrie
  259.                 Wayne Software
  260.                 113 Sheffield St.
  261.                 Silver Spring, MD 20910
  262.  
  263.                 e-mail: WayneSof@erols.com   fax: (301) 588-8986
  264.                 http://www.geocities.com/SiliconValley/Lakes/2414
  265.  
  266. Please provide an Internet e-mail address on all correspondence.
  267.  
  268. 
  269.